#ifndef GD_WEB_SERVER_CLASS_H
#define GD_WEB_SERVER_CLASS_H

#include <godot_cpp/classes/node.hpp>
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/templates/vector.hpp>
#include <godot_cpp/variant/dictionary.hpp>

using namespace godot;

class GdWebServer : public Node {
	GDCLASS(GdWebServer, Node);

protected:
	static void _bind_methods();

public:
	GdWebServer();
	~GdWebServer();

	void start(int port);
	void stop();
	Dictionary handle_request(String method, String url, Dictionary headers, String body);
};

#endif // GD_WEB_SERVER_CLASS_H